<include file="public/header"/>
<div class="am-cf admin-main">
    <include file="public/sidebar"/>
    <!-- content start -->
    <div class="admin-content">
        <div class="am-cf am-padding">
            <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">编辑医院</strong>
                <span style="text-align: center;color: #ff0000;">{$desc}</span>
            </div>
        </div>
        <div class="am-tabs am-margin" data-am-tabs>
            <!--头部选择项-->
            <ul class="am-tabs-nav am-nav am-nav-tabs">
                <li class="am-active"><a href="#tab1">编辑医院</a></li>
            </ul>

            <div class="am-tabs-bd">
                <div class="am-tab-panel am-fade am-in am-active" id="tab1">
                    <form class="am-form"  enctype="multipart/form-data" name="form2" action="__URL__/editHos" method="post">
                        <div class="am-g am-margin-top">
                            <div class="am-u-sm-4 am-u-end">
                                <input type="text" class="am-input-sm" name="phone" value="{$phone}" style="display: none;">
                            </div>
                        </div>
                        <div class="am-margin-top">
                            <div class="am-u-sm-2 am-text-right">
                                医院
                            </div>
                            <div class="am-u-sm-4 am-u-end">
                                <input type="text" class="am-input-sm" name="hospital" value="{$da.hospital}">
                            </div>
                        </div>
                        <div class="am-g am-margin-top">
                            <div class="am-u-sm-2 am-text-right">
                                标签
                            </div>
                            <div class="am-u-sm-4 col-end">
                                <input type="text" class="am-input-sm" name="tabel" value="{$da.tabel}">
                            </div>
                        </div>

                        <div class="am-g am-margin-top">
                            <div class="am-u-sm-2 am-text-right">所属类</div>
                            <div class="am-u-sm-4 am-u-end">
                                    <select name="type">
                                        <option value="{$da.type}">{$da.name}</option>
                                        <option value="1">名医主刀</option>
                                        <option value="2">孕产服务</option>
                                </select>
                            </div>
                        </div>
                        <div class="am-margin-top">
                            <div class="am-u-sm-2 am-text-right">头像</div>
                            <div class="am-u-sm-4 col-end">
                                <input type="file" class="am-input-sm" name="pic"/>
                                <p class="am-form-help">请选择要上传的图片...</p>
                            </div>
                        </div>

                        <div class="am-g am-margin-top-sm">
                            <div class="am-u-sm-2 am-text-right">
                                描述
                            </div>
                            <div class="am-u-sm-7 am-u-end">
                                <textarea rows="5" placeholder="" name="desc">{$da.desc}</textarea>
                            </div>
                        </div>
                        <input type="hidden" name="id" value="{$da.hid}">
                        <div class="am-g am-margin">
                            <input type="submit" name="" value="提 交" class="am-btn am-btn-primary am-btn-sm am-fl">
                        </div>
                    </form>
                </div>

            </div>
        </div>
    </div>
    <!-- content end -->
</div>
<script>
    function checkForm(){
        var collar_type = document.getElementById("collar_type");
        var sleeve_type = document.getElementById("sleeve_type");
        var pocket = document.getElementById("pocket");
        if(collar_type.value == ""){
            alert("请选择领型");
            return false;
        }
        if(sleeve_type.value == ""){
            alert("请选择袖型");
            return false;
        }
        if(pocket.value == ""){
            alert("请选择口袋");
            return false;
        }
        return true;
    }
</script>
<include file="public/footer"/>
